﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddArtType.aspx.cs" Inherits="Com.CMS263.Web.manage.AddArtType" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
     <link href="../style/main.css" rel="stylesheet" type="text/css" />
     <link href="../style/style.css" rel="Stylesheet" type="text/css" />
    <link href="../common/validator.css" rel="stylesheet" type="text/css" />
     <script src="../js/pager.js" type="text/javascript"></script>
    <script type ="text/javascript" language="javascript" src="/manage/js/jquery-1.4.2.min.js"></script>
    <script language ="javascript" type ="text/javascript" >
        $(function() {
        $("#tab tbody tr").mouseover(function() {
        $("#tab tbody tr").attr("className", "asd02")
                $(this).attr("className", "asd01")
            })
        })
    </script>
    <style type="text/css">
        .style1
        {
            width: 155px;
        }
        .style2
        {
            width: 199px;
        }
    </style>
</head>
<body style="background-color: #ffffff;">
    <form id="form1" runat="server">
    <div>
        <table style="width: 80%;" id="tab" border="0" cellspacing="0" cellpadding="0" class="n_dstable">
        <thead class="data_th">
            <tr>
            <td class="style2">
                    &nbsp;
                    ID编号</td>
                <td class="style2">
                    &nbsp;
                    分类名称</td>
                    <td class="style2">
                    &nbsp;
                    扩展属性名称</td>
                <td>
                    操作</td>
               
            </tr>
            </thead>
            <tbody class="data_tb">
           <asp:Repeater ID="rptList" runat="server" onitemcommand="rptList_ItemCommand">
           <ItemTemplate>
           <tr>
           <td >
                   <%#Eval("id") %>
                </td>
                <td >
                   <%#Eval("typeName") %>
                </td>
                <td >
                   <%#GetOutLinkName(Eval("outLink")) %>
                </td>
                <td>
                   <asp:LinkButton  runat="server" ID="del" Text="删除" CommandArgument='<%#Eval("id") %>'  OnClientClick="return confirm('真的要删除这个分类')" /> |<a href="AddArtType.aspx?pid=<%#Eval("id") %>">管理子类</a> |<a href="modArtType.aspx?id=<%#Eval("id") %>">修改</a>
                </td>
               
            </tr>
           </ItemTemplate>
           </asp:Repeater>
            
          </tbody>
        </table>
        <table style="width:50%;" border="0" align ="center"  cellpadding="1" cellspacing="0" class="table_1">
            <tr style ="width :30px">
                <td colspan="3" align="center" >
                   添加分类</td>
               
               
            </tr>
            <tr style ="width :30px">
                <td class="style1">
                    菜单名称：</td>
                <td align ="left" >
                    <asp:TextBox ID="typeName" runat="server" Width="174px"></asp:TextBox>
                    <asp:HiddenField ID="hdfpid" runat="server" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
           
            <tr>
                <td class="style1">
                    排序编号</td>
                <td align ="left">
                    <asp:TextBox ID="txtOrderId" runat="server" Height="18px" Width="75px"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
           
            <tr>
                <td class="style1">
                    是否显示</td>
                <td align ="left">
                    <asp:CheckBox ID="chkShow" Text="显示" Checked="true" runat="server" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    外部程序连接</td>
                <td align ="left">
                    <select id="outApp" name="outApp">
                    <option value="0">使用父类外部程序</option>
                    <asp:Repeater ID="ddlList" runat="server">
                    <ItemTemplate>
                        <option value="<%#Eval("id") %>"><%#Eval("typeName")%></option>
                        </ItemTemplate>
                        </asp:Repeater>
                    </select></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td  colspan="3"   align="center">
                    <asp:Button ID="Button1" runat="server" Text="添加分类" onclick="Button1_Click" 
                        style="height: 26px" /></td>
                
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
